
if (window.plus) {
	mui.plusReady(function() {
		var height = document.documentElement.clientHeight || document.body.clientHeight;
		plus.webview.currentWebview().setStyle({
			height: height
		});
		window.onresize = function() {
			plus.webview.currentWebview().setStyle({
				height: height
			})
		}
		app._self = plus.webview.currentWebview();	
		app._opener = _self.opener();

		if (afterPlusReady)
			afterPlusReady();
	//	console.log("plusReady22")
	});
} else {
	//console.log("plusReady11")
	app._self = self;//与app统一变量名	
	app._opener =window.parent ;// window.opener;

	if (afterPlusReady) {
		afterPlusReady();
	}
}



	//var extras = mui.getExtras();
	//console.log("extras",extras)